const svc = require('../util/service');

module.exports = (req, res) => {
	svc.handlePost(req, res, (reqObj, resolve) => {
		if (!req.session.user) {
			resolve({
				result : 0
			})
			return
		}
		resolve({
			result : 1,
			username : req.session.user.username
		})
	})
}
